
form method = 'get'
  .panel.panel-default
    .panel-heading
    .panel-body
      == grid(@tasks_grid, show_filters: :always) do |g|  
	    -g.column name: '工单号', attribute: 'code'
	    -g.column name: '客户姓名', attribute: 'name', assoc: :customer
	    -g.column name: '车牌号', attribute: 'car_num', assoc: :customer
	    -g.column name: '金额', attribute: 'total'
	    -g.column name: '付款金额', attribute: 'pay_total'
	    -g.column name: '付款方式', attribute: 'payment_method'
	    -g.column name: '付款日期', attribute: 'pay_datetime' do |task| task.pay_datetime.to_s(:db) if task.pay_datetime end
	    -g.column name: '付款状态', attribute: 'payment_status'
        -g.column do |c| grid_pay(:maintain_payment, c.id, c.payment_status) end  

	     
	    




      